<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Page Title</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>

</head>

<body>
    <div id="box">
        <span v-once>这个将不会改变: {{ msg }}</span>
        <hr>
        <p>Using mustaches: {{ rawHtml }}</p>
        <p>Using v-html directive:
            <span v-html="rawHtml"></span>
        </p>
    </div>
</body>
<script>
    var box = new Vue({
        el: "#box",
        data: {
            msg: 111,
            rawHtml: ' <span style="color: red ">This is red!</span>'
        }
    })

    box.msg = 222
</script>

</html>